#include "thread.h"

int removeHiddenCharacters(const char *source, char *destination) {
    const char *src = source;
    char *dst = destination;

    while (*src) {
        if (isprint((unsigned char)*src) && !isspace((unsigned char)*src)) {
            *dst++ = *src;
        }
        src++;
    }

    *dst = '\0';
    return 0;
}
